/* Footer Styles */

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.5rem 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-divider {
    opacity: 0.4;
}

.terms-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.terms-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue, #2c5f7c);
    transition: width 0.3s ease;
}

.terms-link:hover {
    color: #fff;
}

.terms-link:hover::after {
    width: 100%;
}

/* Terms Modal */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terms-modal.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.terms-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.terms-modal.active .terms-modal-content {
    transform: translateY(0) scale(1);
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.terms-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

.terms-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.terms-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue, #2c5f7c);
    margin: 0 0 0.75rem 0;
}

.terms-section p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.terms-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.terms-close-btn {
    padding: 0.75rem 3rem;
    background: linear-gradient(135deg, var(--primary-blue, #2c5f7c) 0%, #1e4a5f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 124, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
    
    .terms-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .terms-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .terms-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .terms-modal-body {
        padding: 1.25rem 1.5rem;
    }
    
    .terms-section h4 {
        font-size: 1rem;
    }
    
    .terms-section p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.25rem 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}
